<template>
  <Viewer
    :value="value"
    :plugins="plugins"
    style="overflow: auto; max-height: 800px; height: 70vh"
  />
</template>

<script setup lang="ts">
import gfm from "@bytemd/plugin-gfm";
import highlight from "@bytemd/plugin-highlight";
import { Viewer } from "@bytemd/vue-next";
import { withDefaults, defineProps } from "vue";

interface Props {
  value: string;
}

const props = withDefaults(defineProps<Props>(), {
  value: () => "",
  mode: () => "split",
  handleChange: (v: string) => {
    console.log(v);
  },
});
const plugins = [
  gfm(),
  highlight(),
  // Add more plugins here
];
</script>
<style></style>
